사이트 내 전체검색
[javascript] 방문자 OS 정보 표시해주기
로빈아빠
https://cmd.kr/javascript/475 URL이 복사되었습니다.

본문

<SCRIPT LANGUAGE="JavaScript">

<!--
function checkOS() {
  if(navigator.userAgent.indexOf('IRIX') != -1)
    { var OpSys = "Irix"; }
  else if((navigator.userAgent.indexOf('Win') != -1) &&
  (navigator.userAgent.indexOf('95') != -1))
    { var OpSys = "Windows 98"; }
  else if(navigator.userAgent.indexOf('Win') != -1)
    { var OpSys = "Windows Me or NT or 2000"; }
  else if(navigator.userAgent.indexOf('Mac') != -1)
    { var OpSys = "Macintosh"; }
  else { var OpSys = "other"; }
  return OpSys;
}
// -->

</SCRIPT>
<title>방문자의 os 알려주기</title>
<body>
<script>
<!--
var OpSys = checkOS();
document.write(OpSys);
//-->
</script>
[이 게시물은 VIRHAC님에 의해 2009-09-13 14:36:02 HTML에서 이동 됨]

댓글목록

등록된 댓글이 없습니다.

831 (7/17P)

Search

Copyright © Cmd 명령어 3.131.36.247